package cn.gmcx.lazy.izze.controller;


import cn.gmcx.lazy.izze.pojo.Praise;
import cn.gmcx.lazy.izze.service.IPraiseService;
import cn.gmcx.lazy.izze.utils.Result;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 点赞表，记录谁点赞了哪条视频 前端控制器
 * </p>
 *
 * @author GMCX
 * @since 2024-08-20
 */
@RestController
@RequestMapping("/praise")
public class PraiseController {
    @Autowired
    private IPraiseService praiseService;
        @GetMapping("/praise/get_isPraise")
    public Result getIsPraise(@RequestParam Integer userId ,@RequestParam Integer videoId){
        Boolean b = praiseService.getIsPraise(userId,videoId);
        return Result.success(b);
    }
}
